$(function() {
	var dialog = $("#dialogholder");

	str = '<div id="dialogModal" class="modal"><div class="modal-dialog"><div class="modal-content">';
	str += '<div class="modal-header">';
	str += '<button type="button" class="close" id="dialog_close">x</button>';
	str += '<h1 class="text-center text-primary" id="tipscontent">提示</h1>';
	str += '</div>';
	str += '<div class="modal-body" style="padding-bottom:40px">';
	str += '<form action="" class="form col-md-12 center-block">';
	str += '<div class="form-group"><span id="dialogtips">tips</span></div>';
	str += '<div class="form-group">';
	str += '<button type="button" class="btn btn-primary btn-lg btn-block" id="confirm">确定</button>';
	str += '<span id="tips"></span>';
	str += '</div>';
	str += '</form>';
	str += '</div>';
	str += '<div class="modal-footer"></div>';
	str += '</div></div></div>';

	dialog.html(str);

	$("#confirm").click(function() {
		console.log('confirm');
		$("#dialogModal").modal('hide');
	});

	$("#dialog_close").click(function() {
		console.log('hide');
		$("#dialogModal").modal('hide');
	});

});
